#include <stdio.h>
#include <stdlib.h>
char *p(char *str,char *newstr,int m) {
    char *p = newstr;
    while (*str != '\0') {
        *(p++) = *(str + m);
         m++;
    }
    *p = '\0';
    return p;
}

int main() {
    int n, m;
    printf("Enter the size of n: ");
    scanf("%d", &n);
    char str[n];
    printf("Enter the input string: ");
    scanf("%s",str);
    printf("Enter the starting position m: ");
    scanf("%d", &m);
    char new_str[n];
    //char*newstr=p(str,new_str, m);
    p(str,new_str,m);
    printf("New string: %s\n", new_str);
    //printf("New string: %s\n", newstr);
    return 0;
}